//
//  SAHTTPSessionManager.h
//  ShopAssistant
//
//  Created by FangGeek on 2017/11/15.
//  Copyright © 2017年 hyxt. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>
#import "SASingletonTemplate.h"

@interface SAHTTPSessionManager : AFHTTPSessionManager
typedef NS_ENUM(NSUInteger,HttpRequestType)
{
    HttpRequestTypeGet = 0,
    HttpRequestTypePost = 1,
    HttpRequestTypePostBody = 2,
    HttpRequestTypePostData
};
typedef void(^requestSuccess)( NSDictionary * object,NSError *error);
/**
 *  单例工厂方法
 */
SASINGLETON_FOR_HEADER(SAHTTPSessionManager);

-(void)requestWithType:(HttpRequestType)type withParaments:(id)paraments withCMD:(NSString *)url withComeBack:(requestSuccess)requestSuccess;


@end
